<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Struct template bucket_hash_equal_t&lt;ValueTraits, VoidOrKeyOfValue, VoidOrKeyHash, VoidOrKeyEqual, BucketTraits, LinearBuckets, true&gt;</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../intrusive/reference.html#header.boost.intrusive.hashtable_hpp" title="Header &lt;boost/intrusive/hashtable.hpp&gt;">
<link rel="prev" href="bucket_hash_equal_t.html" title="Struct template bucket_hash_equal_t">
<link rel="next" href="bucket_hash_t.html" title="Struct template bucket_hash_t">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="bucket_hash_equal_t.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../intrusive/reference.html#header.boost.intrusive.hashtable_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="bucket_hash_t.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.intrusive.bucket_hash_equal_idm30025"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Struct template bucket_hash_equal_t&lt;ValueTraits, VoidOrKeyOfValue, VoidOrKeyHash, VoidOrKeyEqual, BucketTraits, LinearBuckets, true&gt;</span></h2>
<p>boost::intrusive::bucket_hash_equal_t&lt;ValueTraits, VoidOrKeyOfValue, VoidOrKeyHash, VoidOrKeyEqual, BucketTraits, LinearBuckets, true&gt;</p>
</div>
<h2 class="refsynopsisdiv-title">Synopsis</h2>
<div class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../intrusive/reference.html#header.boost.intrusive.hashtable_hpp" title="Header &lt;boost/intrusive/hashtable.hpp&gt;">boost/intrusive/hashtable.hpp</a>&gt;

</span><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> ValueTraits<span class="special">,</span> <span class="keyword">typename</span> VoidOrKeyOfValue<span class="special">,</span> 
         <span class="keyword">typename</span> VoidOrKeyHash<span class="special">,</span> <span class="keyword">typename</span> VoidOrKeyEqual<span class="special">,</span> 
         <span class="keyword">typename</span> BucketTraits<span class="special">,</span> <span class="keyword">bool</span> LinearBuckets<span class="special">&gt;</span> 
<span class="keyword">struct</span> <a class="link" href="bucket_hash_equal_idm30025.html" title="Struct template bucket_hash_equal_t&lt;ValueTraits, VoidOrKeyOfValue, VoidOrKeyHash, VoidOrKeyEqual, BucketTraits, LinearBuckets, true&gt;">bucket_hash_equal_t</a><span class="special">&lt;</span><span class="identifier">ValueTraits</span><span class="special">,</span> <span class="identifier">VoidOrKeyOfValue</span><span class="special">,</span> <span class="identifier">VoidOrKeyHash</span><span class="special">,</span> <span class="identifier">VoidOrKeyEqual</span><span class="special">,</span> <span class="identifier">BucketTraits</span><span class="special">,</span> <span class="identifier">LinearBuckets</span><span class="special">,</span> <span class="keyword">true</span><span class="special">&gt;</span> <span class="special">:</span> <span class="keyword">public</span> boost::intrusive::bucket_hash_t&lt; ValueTraits, VoidOrKeyOfValue, VoidOrKeyHash, BucketTraits, LinearBuckets &gt;,
                             <span class="keyword">public</span> hashtable_equal_holder::type
<span class="special">{</span>
  <span class="comment">// types</span>
  <span class="keyword">typedef</span> <span class="identifier">hashtable_equal_holder</span><span class="special">&lt;</span> <span class="identifier">ValueTraits</span><span class="special">,</span> <span class="identifier">BucketTraits</span><span class="special">,</span> <span class="identifier">VoidOrKeyOfValue</span><span class="special">,</span> <span class="identifier">VoidOrKeyEqual</span><span class="special">,</span> <span class="identifier">LinearBuckets</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span> <a name="boost.intrusive.bucket_hash_equal_idm30025.equal_holder_t"></a><span class="identifier">equal_holder_t</span><span class="special">;</span>       
  <span class="keyword">typedef</span> <span class="identifier">bucket_plus_vtraits</span><span class="special">&lt;</span> <span class="identifier">ValueTraits</span><span class="special">,</span> <span class="identifier">BucketTraits</span><span class="special">,</span> <span class="identifier">LinearBuckets</span> <span class="special">&gt;</span>                                            <a name="boost.intrusive.bucket_hash_equal_idm30025.bucket_plus_vtraits_t"></a><span class="identifier">bucket_plus_vtraits_t</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">ValueTraits</span>                                                                                                <a name="boost.intrusive.bucket_hash_equal_idm30025.value_traits"></a><span class="identifier">value_traits</span><span class="special">;</span>         
  <span class="keyword">typedef</span> <span class="identifier">equal_holder_t</span><span class="special">::</span><span class="identifier">functor_type</span>                                                                               <a name="boost.intrusive.bucket_hash_equal_idm30025.key_equal"></a><span class="identifier">key_equal</span><span class="special">;</span>            
  <span class="keyword">typedef</span> <span class="identifier">bucket_hash_t</span><span class="special">&lt;</span> <span class="identifier">ValueTraits</span><span class="special">,</span> <span class="identifier">VoidOrKeyOfValue</span><span class="special">,</span> <span class="identifier">VoidOrKeyHash</span><span class="special">,</span> <span class="identifier">BucketTraits</span><span class="special">,</span> <span class="identifier">LinearBuckets</span> <span class="special">&gt;</span>                 <a name="boost.intrusive.bucket_hash_equal_idm30025.bucket_hash_type"></a><span class="identifier">bucket_hash_type</span><span class="special">;</span>     
  <span class="keyword">typedef</span> <span class="identifier">bucket_hash_type</span><span class="special">::</span><span class="identifier">hasher</span>                                                                                   <a name="boost.intrusive.bucket_hash_equal_idm30025.hasher"></a><span class="identifier">hasher</span><span class="special">;</span>               
  <span class="keyword">typedef</span> <span class="identifier">BucketTraits</span>                                                                                               <a name="boost.intrusive.bucket_hash_equal_idm30025.bucket_traits"></a><span class="identifier">bucket_traits</span><span class="special">;</span>        
  <span class="keyword">typedef</span> <span class="identifier">bucket_plus_vtraits_t</span><span class="special">::</span><span class="identifier">siterator</span>                                                                           <a name="boost.intrusive.bucket_hash_equal_idm30025.siterator"></a><span class="identifier">siterator</span><span class="special">;</span>            
  <span class="keyword">typedef</span> <span class="identifier">bucket_plus_vtraits_t</span><span class="special">::</span><span class="identifier">slist_node_algorithms</span>                                                               <a name="boost.intrusive.bucket_hash_equal_idm30025.slist_node_algorithms"></a><span class="identifier">slist_node_algorithms</span><span class="special">;</span>
  <span class="keyword">typedef</span> <span class="identifier">unordered_bucket_ptr_impl</span><span class="special">&lt;</span> <span class="identifier">typenamebucket_hash_type</span><span class="special">::</span><span class="identifier">value_traits</span> <span class="special">&gt;</span><span class="special">::</span><span class="identifier">type</span>                                  <a name="boost.intrusive.bucket_hash_equal_idm30025.bucket_ptr"></a><span class="identifier">bucket_ptr</span><span class="special">;</span>           

  <span class="comment">// <a class="link" href="bucket_hash_equal_idm30025.html#boost.intrusive.bucket_hash_equal_idm30025construct-copy-destruct">construct/copy/destruct</a></span>
  <a class="link" href="bucket_hash_equal_idm30025.html#idm30109-bb"><span class="identifier">bucket_hash_equal_t</span></a><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ValueTraits</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">bucket_traits</span> <span class="special">&amp;</span><span class="special">,</span> 
                      <span class="keyword">const</span> <span class="identifier">hasher</span> <span class="special">&amp;</span><span class="special">,</span> <span class="keyword">const</span> <span class="identifier">key_equal</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <a class="link" href="bucket_hash_equal_idm30025.html#idm30118-bb"><span class="identifier">bucket_hash_equal_t</span></a><span class="special">(</span><span class="identifier">bucket_hash_equal_t</span> <span class="special">&amp;&amp;</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// <a class="link" href="../interprocess/basic_obufferstream.html#idm30066-bb">public member functions</a></span>
  <span class="identifier">bucket_ptr</span> <a class="link" href="../interprocess/basic_obufferstream.html#idm30067-bb"><span class="identifier">priv_get_cache</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30069-bb"><span class="identifier">priv_set_cache</span></a><span class="special">(</span><span class="identifier">bucket_ptr</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30073-bb"><span class="identifier">priv_set_cache_bucket_num</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30077-bb"><span class="identifier">priv_get_cache_bucket_num</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30079-bb"><span class="identifier">priv_init_cache</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30081-bb"><span class="identifier">priv_swap_cache</span></a><span class="special">(</span><span class="identifier">bucket_hash_equal_t</span> <span class="special">&amp;</span><span class="special">)</span><span class="special">;</span>
  <span class="identifier">siterator</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30085-bb"><span class="identifier">priv_begin</span></a><span class="special">(</span><span class="identifier">bucket_ptr</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30089-bb"><span class="identifier">priv_insertion_update_cache</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">const</span> <span class="identifier">key_equal</span> <span class="special">&amp;</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30093-bb"><span class="identifier">priv_equal</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
  <span class="identifier">key_equal</span> <span class="special">&amp;</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30095-bb"><span class="identifier">priv_equal</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30097-bb"><span class="identifier">priv_erasure_update_cache_range</span></a><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">,</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30103-bb"><span class="identifier">priv_erasure_update_cache</span></a><span class="special">(</span><span class="identifier">bucket_ptr</span><span class="special">)</span><span class="special">;</span>
  <span class="keyword">void</span> <a class="link" href="bucket_hash_equal_idm30025.html#idm30107-bb"><span class="identifier">priv_erasure_update_cache</span></a><span class="special">(</span><span class="special">)</span><span class="special">;</span>

  <span class="comment">// public data members</span>
  <span class="identifier">bucket_ptr</span> <span class="identifier">cached_begin_</span><span class="special">;</span>
<span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.18.42.14.4.4"></a><h2>Description</h2>
<div class="refsect2">
<a name="id-1.3.18.42.14.4.4.2"></a><h3>
<a name="boost.intrusive.bucket_hash_equal_idm30025construct-copy-destruct"></a><code class="computeroutput">bucket_hash_equal_t</code> 
        public
       construct/copy/destruct</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><a name="idm30109-bb"></a><span class="identifier">bucket_hash_equal_t</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">ValueTraits</span> <span class="special">&amp;</span> val_traits<span class="special">,</span> 
                    <span class="keyword">const</span> <span class="identifier">bucket_traits</span> <span class="special">&amp;</span> b_traits<span class="special">,</span> <span class="keyword">const</span> <span class="identifier">hasher</span> <span class="special">&amp;</span> h<span class="special">,</span> 
                    <span class="keyword">const</span> <span class="identifier">key_equal</span> <span class="special">&amp;</span> e<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><a name="idm30118-bb"></a><span class="identifier">bucket_hash_equal_t</span><span class="special">(</span><span class="identifier">bucket_hash_equal_t</span> <span class="special">&amp;&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
<div class="refsect2">
<a name="id-1.3.18.42.14.4.4.3"></a><h3>
<a name="idm30066-bb"></a><code class="computeroutput">bucket_hash_equal_t</code> public member functions</h3>
<div class="orderedlist"><ol class="orderedlist" type="1">
<li class="listitem"><pre class="literallayout"><span class="identifier">bucket_ptr</span> <a name="idm30067-bb"></a><span class="identifier">priv_get_cache</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30069-bb"></a><span class="identifier">priv_set_cache</span><span class="special">(</span><span class="identifier">bucket_ptr</span> p<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30073-bb"></a><span class="identifier">priv_set_cache_bucket_num</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> insertion_bucket<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> <a name="idm30077-bb"></a><span class="identifier">priv_get_cache_bucket_num</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30079-bb"></a><span class="identifier">priv_init_cache</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30081-bb"></a><span class="identifier">priv_swap_cache</span><span class="special">(</span><span class="identifier">bucket_hash_equal_t</span> <span class="special">&amp;</span> other<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">siterator</span> <a name="idm30085-bb"></a><span class="identifier">priv_begin</span><span class="special">(</span><span class="identifier">bucket_ptr</span> <span class="special">&amp;</span> pbucketptr<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30089-bb"></a><span class="identifier">priv_insertion_update_cache</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> insertion_bucket<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">const</span> <span class="identifier">key_equal</span> <span class="special">&amp;</span> <a name="idm30093-bb"></a><span class="identifier">priv_equal</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="identifier">key_equal</span> <span class="special">&amp;</span> <a name="idm30095-bb"></a><span class="identifier">priv_equal</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30097-bb"></a><span class="identifier">priv_erasure_update_cache_range</span><span class="special">(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> first_bucket_num<span class="special">,</span> 
                                     <span class="identifier">std</span><span class="special">::</span><span class="identifier">size_t</span> last_bucket_num<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30103-bb"></a><span class="identifier">priv_erasure_update_cache</span><span class="special">(</span><span class="identifier">bucket_ptr</span> first_bucket<span class="special">)</span><span class="special">;</span></pre></li>
<li class="listitem"><pre class="literallayout"><span class="keyword">void</span> <a name="idm30107-bb"></a><span class="identifier">priv_erasure_update_cache</span><span class="special">(</span><span class="special">)</span><span class="special">;</span></pre></li>
</ol></div>
</div>
</div>
</div>
<div class="copyright-footer">Copyright © 2005 Olaf Krzikalla<br>Copyright © 2006-2015 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="bucket_hash_equal_t.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../intrusive/reference.html#header.boost.intrusive.hashtable_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="bucket_hash_t.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
